package com.test.fileapplication.util;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;

/**
 * Created by GaoTing on 2020/2/10.
 * <p>
 * Explain:数据缓存
 */
@Entity
public class DataCacheEntity {

    @Id
    private Long id;
    @Unique
    private String fileId;//文件ID
    private String userId;
    private Integer fileType;//文件类别(1.文件,2,文件夹)
    private String fileName;//文件名
    private String fileSuffix;//文件后缀名
    private String fileThumbnail;//服务器返回文件缩略图
    private String fileThumbnailUrl;//文件缩略图路径(如果是Url则为Url  如果是base64 则为 本地文件绝对路径)
    private String parentId;//父级Id(所属文件夹Id)
    private Integer searchType;//文件类型(0-其他,1-视频，2-图片，3-文档，4-音频)
    private long updateTime;//文件更新时间
    private long fileSize;//文件大小
    private int recoverStatus;
    private int backupStatus;
    private long deleteTime;
    private String duration;//视频时长




    @Generated(hash = 2133733002)
    public DataCacheEntity(Long id, String fileId, String userId, Integer fileType,
                           String fileName, String fileSuffix, String fileThumbnail,
                           String fileThumbnailUrl, String parentId, Integer searchType,
                           long updateTime, long fileSize, int recoverStatus, int backupStatus,
                           long deleteTime, String duration) {
        this.id = id;
        this.fileId = fileId;
        this.userId = userId;
        this.fileType = fileType;
        this.fileName = fileName;
        this.fileSuffix = fileSuffix;
        this.fileThumbnail = fileThumbnail;
        this.fileThumbnailUrl = fileThumbnailUrl;
        this.parentId = parentId;
        this.searchType = searchType;
        this.updateTime = updateTime;
        this.fileSize = fileSize;
        this.recoverStatus = recoverStatus;
        this.backupStatus = backupStatus;
        this.deleteTime = deleteTime;
        this.duration = duration;
    }

    @Generated(hash = 1757662502)
    public DataCacheEntity() {
    }




    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFileId() {
        return this.fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getFileType() {
        return this.fileType;
    }

    public void setFileType(Integer fileType) {
        this.fileType = fileType;
    }

    public String getFileName() {
        return this.fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileSuffix() {
        return this.fileSuffix;
    }

    public void setFileSuffix(String fileSuffix) {
        this.fileSuffix = fileSuffix;
    }

    public String getFileThumbnail() {
        return this.fileThumbnail;
    }

    public void setFileThumbnail(String fileThumbnail) {
        this.fileThumbnail = fileThumbnail;
    }

    public String getFileThumbnailUrl() {
        return this.fileThumbnailUrl;
    }

    public void setFileThumbnailUrl(String fileThumbnailUrl) {
        this.fileThumbnailUrl = fileThumbnailUrl;
    }

    public String getParentId() {
        return this.parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Integer getSearchType() {
        return this.searchType;
    }

    public void setSearchType(Integer searchType) {
        this.searchType = searchType;
    }

    public long getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public long getFileSize() {
        return this.fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public int getRecoverStatus() {
        return this.recoverStatus;
    }

    public void setRecoverStatus(int recoverStatus) {
        this.recoverStatus = recoverStatus;
    }

    public int getBackupStatus() {
        return this.backupStatus;
    }

    public void setBackupStatus(int backupStatus) {
        this.backupStatus = backupStatus;
    }

    public long getDeleteTime() {
        return this.deleteTime;
    }

    public void setDeleteTime(long deleteTime) {
        this.deleteTime = deleteTime;
    }

    public String getDuration() {
        return this.duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

}
